package com.ganwei.mybatisplus.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ganwei.mybatisplus.config.util.PageData;
import com.ganwei.mybatisplus.system.pojo.Users;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


/**
 * @author 26782
 */
public interface UsesService extends IService<Users> {

    PageData<Users> queryUsersPage(Integer pageNum , Integer pageSize);

    List<Users> queryAll(HttpServletResponse response) throws IOException;

    boolean insertAll(List<Users> users);

    int updateUser(Users users);

    List<Users> userAll(QueryWrapper wrapper);

    Users userById(Long id);

    int usersSave(Users users);


}
